package com.tiancheng.trade.merchant.exception;

import lombok.Getter;

/**
 * 业务异常
 *
 * @author kellen
 * @date 2019-09-03
 * @changed kellen at 2021/07/15
 */
@Getter
public class BusinessException extends RuntimeException {
    private Integer code;
    private String message;

    public BusinessException() {
        super();
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(Integer code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public BusinessException(Integer code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
        this.message = message;
    }

}